﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RouterControl.Db.ParseAllSchemas
{
	class Program
	{
		static void Main(string[] args)
		{
			if (args.Length != 1)
			{
				Console.WriteLine("RouterControl.Db.ParseAllSchemas.exe <forceParse>");
				Console.WriteLine();
				Console.WriteLine("\tforceParse\tforce parsing of all schemas: true OR false");
				Console.WriteLine();

				return;
			}

			// start
			log4net.Config.BasicConfigurator.Configure();

			var force = bool.Parse(args[0]);

			var conn = new RouterControl.Db.DeviceDomDbConnector();

			conn.ParseAllUnparsedDeviceSchemas(force);
		}
	}
}
